#include "Thread.hpp"
#include <unistd.h>

using namespace std;

void Print()
{
    while(true)
    {
        cout << "Thread is runing..." << endl;
        sleep(1);
    }
}

int main()
{
    Thread thread(Print);
    thread.Run();

    cout << thread.Name() << " start at the timestamp :" << thread.Starttime() << endl;
    cout << "启动状态:" << thread.IsRunning() << endl;
    thread.Join();

    return 0;
}
